package com.overlook.somniferous.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 权限表
 */
@ApiModel(description="权限表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`power`")
public class Power implements Serializable {
    @TableField(value = "id")
    @ApiModelProperty(value="")
    @Size(max = 100,message = "最大长度要小于 100")
    @NotBlank(message = "不能为空")
    private String id;

    /**
     * 标签
     */
    @TableField(value = "labelId")
    @ApiModelProperty(value="标签")
    @Size(max = 100,message = "标签最大长度要小于 100")
    private String labelid;

    /**
     * 折扣
     */
    @TableField(value = "discount")
    @ApiModelProperty(value="折扣")
    @Size(max = 100,message = "折扣最大长度要小于 100")
    private String discount;

    /**
     * 等级
     */
    @TableField(value = "`level`")
    @ApiModelProperty(value="等级")
    @Size(max = 100,message = "等级最大长度要小于 100")
    private String level;

    private static final long serialVersionUID = 1L;
}